package com.MVC.Control;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.ui.ModelMap;

@Controller
public class Hello {
	@RequestMapping("/hello")
	public String printHello(ModelMap model) {
		System.out.println("hello world");
		model.addAttribute("message", "Hello Spring MVC Framework!");
		return "hello";
	}
}
